//
//  UIColor+Extension.swift
//  SinaWeibo
//
//  Created by 周小伟 on 16/8/24.
//  Copyright © 2016年 周小伟. All rights reserved.
//

import UIKit

extension UIColor{
    class func randomColor()->UIColor{
        let r:CGFloat = CGFloat(random() % 255)/255.0
        let g:CGFloat = CGFloat(random() % 255)/255.0
        let b:CGFloat = CGFloat(random() % 255)/255.0
        return UIColor(red: r, green: g, blue: b, alpha: 1.0)
    }
}
